package net.ericaro.neojavagen.blocks ;
import net.ericaro.neojavagen.expressions.Expression;
import net.ericaro.neojavagen.blocks.StatementWithoutTrailingSubstatement;
import net.ericaro.neojavagen.blocks.SwitchBlock ;

/**
* *<pre> SwitchStatement :
    switch ( Expression ) SwitchBlock
</pre>
*/
public class SwitchStatement  implements StatementWithoutTrailingSubstatement {

Expression expression;
SwitchBlock switchblock ;

public SwitchStatement( Expression expression, SwitchBlock switchblock ){
	this.expression = expression; this.switchblock = switchblock ;
	}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "switch" ).append(" ");
stringbuilder.append( "(" ).append(" ");
stringbuilder.append( this.expression ).append(" ");
stringbuilder.append( ")" ).append(" ");
stringbuilder.append( this.switchblock ).append(" ") ;
	return stringbuilder.toString();
}

}
